package org.example.aspect;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component("aspect1")
@Aspect
public class Aspect1 {


    @Before("bean(*Service)")
    public void beforeTodo() {
        System.out.println("BeforeDo.beforeTodo");

    }
}
